﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using PerfAnalyzerLib;
using System.Threading;

namespace PerfAnalyzerUI
{
	static class Program
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main()
		{
			StartApplication();

				//bool _isNotRunning;

				//using (Mutex _mutex = new Mutex(true, "PerfAnalyzerMutex", out _isNotRunning))
				//{
				//	if (_isNotRunning)
				//	{
				//		StartApplication();
				//	}
				//	else
				//	{
				//		MessageBox.Show("Only one instance of Perfanalyzer can run in trial mode.", "PerfAnalyzer", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				//	}
				//}

		}

		static private void StartApplication()
		{
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
			Application.Run(new MainForm());
		}
	}
}
